<?php


namespace App\Http\Controllers;
use GuzzleHttp\Client;

class IndexController
{

    public function test(){

        $method = 'fzapi.crm.EnqMemberInfo';
        $content = [];
        $content['telephone'] = '15972997301';
        $content['mall_id'] = '10295';
        $time = date('Y-m-d H:i:s');
        $require = new Request($method,$content,$time);
        $sign = $require->getSign();
        $sendUrl = $require->getSendUrl();
        $param = $require->getParam($sign,$time);
        $client = new Client();
        $res = $client->request('POST', $sendUrl, [
            'form_params' => $param
        ]);
        $body = $res->getBody()->getContents();
        var_dump(json_decode($body,true));die;
    }
}